import { createRouter, createWebHistory } from "vue-router"

const routes = [
  {
    path: "/", redirect: "/home",
    children: [
      { path: "/home", component: () => import("@/page/Home.vue") },
      { path: "/bangumi", name: "Bangumi", component: () => import("@/page/Bangumi.vue") },
    ]
  },
  {
    path: "/contribute",
    name: "Contribute",
    component: () => import("@/page/Contribute.vue")
  },
  {
    path: "/test",
    name: "Test",
    component: () => import("@/page/Test.vue")
  }

]


const router = createRouter({
  history: createWebHistory(),
  routes
})





export default router
